package com.fyb.doublecache.mapper;

import com.fyb.doublecache.entity.Algorithminfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @Author：MR.FANG
 * @name：AlgoritmMapper
 * @Date：2025/7/3 上午10:17
 */
@Mapper
public interface AlgoritmMapper {

    @Select("SELECT * FROM algorithm_info WHERE id = #{id}")
    Algorithminfo findById(String id);
    @Update("UPDATE algorithm_info SET name = #{name}, description = #{description}, " +
            "version = #{version}, parameters = #{parameters}, update_time = #{updateTime} " +
            "WHERE id = #{id}")
    int update(Algorithminfo info);
}
